<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>BFC解决问题3-高度坍塌</title>
  <style>
    .box {
      width: 600px;
      background-color: lightskyblue;
      border: 2px solid black;
      overflow: hidden;
      /* display: inline-block; */
      /* position: absolute; */
    }
    .box1 {
      width: 300px;
      height: 300px;
      background-color: lightsalmon;
      float: left;
      /* overflow: hidden; */
    }
    p {
      overflow: hidden;
    }
  </style>
</head>
<body>
  
  <div class="box">
    <div class="box1"></div>
    <p>开题冲！！！亮剑精神！！！</p>
  </div>


</body>
</html>